@import "~element-ui/packages/theme-chalk/src/mixins/mixins";

// backtop
.el-backtop {
  color: var(--color-primary);
}

// badge
.el-badge__content--primary {
  background-color: var(--color-primary);
}

// breadcrumb
.el-breadcrumb__inner a:hover, .el-breadcrumb__inner.is-link:hover {
  color: var(--color-primary);
}

// button
@import "./theme-patch/button";

// calendar
.el-calendar-table td.is-today {
  color: var(--color-primary);
}

// cascader
.el-cascader .el-input .el-input__inner:focus, .el-cascader .el-input.is-focus .el-input__inner {
  border-color: var(--color-primary);
}

.el-cascader__suggestion-item.is-checked {
  color: var(--color-primary);
}

// cascader-panel
.el-cascader-node.in-active-path, .el-cascader-node.is-active, .el-cascader-node.is-selectable.in-checked-path {
  color: var(--color-primary);
}

.el-checkbox-button__inner:hover {
  color: var(--color-primary);
}

// checkbox
.el-checkbox.is-bordered.is-checked {
  border-color: var(--color-primary);
}

.el-checkbox__inner:hover {
  border-color: var(--color-primary);
}

.el-checkbox-button.is-checked .el-checkbox-button__inner {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: -1px 0 0 0 var(--color-primary-light-6);
}

.el-checkbox-button.is-checked:first-child .el-checkbox-button__inner {
  border-left-color: var(--color-primary);
}

.el-checkbox-button.is-focus .el-checkbox-button__inner {
  border-color: var(--color-primary);
}

.el-checkbox__input.is-checked + .el-checkbox__label {
  color: var(--color-primary);
}

.el-checkbox__input.is-checked .el-checkbox__inner, .el-checkbox__input.is-indeterminate .el-checkbox__inner {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.el-checkbox__input.is-focus .el-checkbox__inner {
  border-color: var(--color-primary);
}

// collapse
.el-collapse-item__header.focusing:focus:not(:hover) {
  color: var(--color-primary);
}

// color-picker
.el-color-predefine__color-selector.selected {
  box-shadow: 0 0 3px 2px var(--color-primary);
}

.el-color-dropdown__btn:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.el-color-dropdown__link-btn:hover {
  color: var(--color-primary-light-2);
}

// dialog
.el-dialog__headerbtn:focus .el-dialog__close, .el-dialog__headerbtn:hover .el-dialog__close {
  color: var(--color-primary);
}

// dropdown
.el-dropdown-menu__item:focus, .el-dropdown-menu__item:not(.is-disabled):hover {
  background-color: var(--color-primary-light-1);
  color: var(--color-primary-light-8);
}

// input
.el-input.is-active .el-input__inner, .el-input__inner:focus {
  border-color:  var(--color-primary);
}

// input-number
.el-input-number__decrease:hover, .el-input-number__increase:hover {
  color: var(--color-primary);
}

.el-input-number__decrease:hover:not(.is-disabled) ~ .el-input .el-input__inner:not(.is-disabled), .el-input-number__increase:hover:not(.is-disabled) ~ .el-input .el-input__inner:not(.is-disabled) {
  border-color: var(--color-primary);
}

// link
.el-link.el-link--primary {
  color: var(--color-primary);
}

.el-link.el-link--default:hover {
  color: var(--color-primary);
}

.el-link.is-underline:hover:after {
  border-bottom: 1px solid var(--color-primary);
}

.el-link.el-link--default:after, .el-link.el-link--primary.is-underline:hover:after, .el-link.el-link--primary:after {
  border-color: var(--color-primary);
}

// loading
.el-loading-spinner .circular {
  display: unset;
}

.el-loading-spinner .el-loading-text {
  color: var(--color-primary);
}

.el-loading-spinner .path {
  stroke: var(--color-primary);
}

.el-loading-spinner i {
  color: var(--color-primary);
}

// menu
.el-menu--horizontal > .el-submenu.is-active .el-submenu__title {
  border-bottom: 2px solid var(--color-primary);
}

.el-menu--horizontal > .el-menu-item.is-active {
  border-bottom: 2px solid var(--color-primary);
}

.el-menu-item.is-active {
  color: var(--color-primary);
}

.el-menu-item:focus, .el-menu-item:hover {
  background-color: var(--color-primary-light-1);
}

.el-submenu [class^=el-icon-] {
  width: 20px;
  margin-right: 0;
  transform: translateX(-5px);
}

.el-submenu.is-active .el-submenu__title {
  border-bottom-color: var(--color-primary);
}

.el-submenu__title:hover {
  background-color: var(--color-primary-light-1);
}

.el-submenu__title:focus, .el-submenu__title:hover {
  background-color: var(--color-primary-light-1);
}

// message-box
.el-message-box__headerbtn:focus .el-message-box__close, .el-message-box__headerbtn:hover .el-message-box__close {
  color: var(--color-primary);
}

// pagination
.el-pagination.is-background .el-pager li:not(.disabled).active {
  background-color: var(--color-primary);
}

.el-pagination button:hover {
  color: var(--color-primary);
}

.el-pagination__sizes .el-input .el-input__inner:hover {
  border-color: var(--color-primary);
}

.el-pagination.is-background .el-pager li:not(.disabled):hover {
  color: var(--color-primary);
}

.el-pager li:hover {
  color: var(--color-primary);
}

.el-pager li.active {
  color: var(--color-primary);
}

// progress
.el-progress-bar__inner {
  background-color: var(--color-primary);
}

// radio-button
.el-radio-button__inner:hover {
  color: var(--color-primary);
}

// radio
.el-radio__inner:hover {
  border-color: var(--color-primary);
}

.el-radio.is-bordered.is-checked {
  border-color: var(--color-primary);
}

.el-radio__input.is-checked + .el-radio__label {
  color: var(--color-primary);
}

.el-radio__input.is-checked .el-radio__inner {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.el-radio__input.is-focus .el-radio__inner {
  border-color: var(--color-primary);
}

.el-radio:focus:not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner {
  box-shadow: 0 0 2px 2px var(--color-primary);
}

// radio-button
.el-radio-button__orig-radio:checked + .el-radio-button__inner {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: -1px 0 0 0 var(--color-primary);
}

.el-radio-button:focus:not(.is-focus):not(:active):not(.is-disabled) {
  box-shadow: 0 0 2px 2px var(--color-primary);
}

// reset
a {
  color: var(--color-primary);
}

a:focus, a:hover {
  color: var(--color-primary-light-8);
}

a:active {
  color: var(--color-darken-primary-1);
}

// select
.el-select .el-input__inner:focus {
  border-color: var(--color-primary);
}

.el-select .el-input.is-focus .el-input__inner {
  border-color: var(--color-primary);
}

.el-select-dropdown__item.selected {
  color: var(--color-primary);
}

.el-select-dropdown.is-multiple .el-select-dropdown__item.selected {
  color: var(--color-primary);
}

.el-textarea__inner:focus {
  border-color: var(--color-primary);
}

.el-tag {
  background-color: var(--color-primary-light-1);
  border-color: var(--color-primary-light-2);
  color: var(--color-primary);
}

.el-tag.is-hit {
  border-color: var(--color-primary);
}

.el-tag--dark.is-hit {
  border-color: var(--color-primary);
}

.el-tag--plain.is-hit {
  border-color: var(--color-primary);
}

.el-tag .el-tag__close {
  color: var(--color-primary);
}

.el-tag .el-tag__close:hover {
  background-color: var(--color-primary);
}

.el-tag--dark {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.el-tag--plain {
  border-color: var(--color-primary-light-4);
  color: var(--color-primary);
}

.el-tag--plain .el-tag__close {
  color: var(--color-primary);
}

.el-tag--plain .el-tag__close:hover {
  background-color: var(--color-primary);
}

// slider
.el-slider.is-vertical.el-slider--with-input .el-slider__input:active .el-input-number__decrease, .el-slider.is-vertical.el-slider--with-input .el-slider__input:active .el-input-number__increase {
  border-color: var(--color-primary);
}

.el-slider__bar {
  background-color: var(--color-primary);
}

.el-slider__button {
  border: 2px solid var(--color-primary);
}

// step
.el-step__head.is-finish {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.el-step__title.is-finish {
  color: var(--color-primary);
}

.el-step__description.is-finish {
  color: var(--color-primary);
}

// switch
.el-switch__label.is-active {
  color: var(--color-primary);
}

.el-switch.is-checked .el-switch__core {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
}

// table
.el-table--striped .el-table__body tr.el-table__row--striped.current-row td {
  background-color: var(--color-primary-light-1);
}

.el-table__body tr.current-row > td {
  background-color: var(--color-primary-light-1);
}

// table-column
.el-table-filter__list-item:hover {
  background-color: var(--color-primary-light-1);
  color: var(--color-primary-light-8);
}

.el-table-filter__list-item.is-active {
  background-color: var(--color-primary);
}

.el-table-filter__bottom button:hover {
  color: var(--color-primary);
}

// table
.el-table th > .cell.highlight {
  color: var(--color-primary);
}

.el-table .ascending .sort-caret.ascending {
  border-bottom-color: var(--color-primary);
}

.el-table .descending .sort-caret.descending {
  border-top-color: var(--color-primary);
}

// tabs
.el-tabs__active-bar {
  background-color: var(--color-primary);
}

.el-tabs__new-tab:hover {
  color: var(--color-primary);
}

.el-tabs__item:focus.is-active.is-focus:not(:active) {
  box-shadow: 0 0 2px 2px var(--color-primary) inset;
}

.el-tabs__item.is-active {
  color: var(--color-primary);
}

.el-tabs__item:hover {
  color: var(--color-primary);
}

.el-tabs--border-card > .el-tabs__header .el-tabs__item.is-active {
  color: var(--color-primary);
}

.el-tabs--border-card > .el-tabs__header .el-tabs__item:not(.is-disabled):hover {
  color: var(--color-primary);
}

// time-select
.time-select-item.selected:not(.disabled) {
  color: var(--color-primary);
}

// timeline-item
.el-timeline-item__node--primary {
  background-color: var(--color-primary);
}

// transfer
.el-transfer__button {
  background-color: var(--color-primary);
}

.el-transfer-panel__item:hover {
  color: var(--color-primary);
}

// tree
.el-tree__drop-indicator {
  background-color: var(--color-primary);
}

.el-tree-node.is-drop-inner > .el-tree-node__content .el-tree-node__label {
  background-color: var(--color-primary);
}

.el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content {
  background-color: var(--color-primary-light-1);
}

// upload
.el-upload--picture-card:hover, .el-upload:focus {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.el-upload:focus .el-upload-dragger {
  border-color: var(--color-primary);
}

.el-upload-dragger .el-upload__text em {
  color: var(--color-primary);
}

.el-upload-dragger:hover {
  border-color: var(--color-primary);
}

.el-upload-dragger.is-dragover {
  border: 2px dashed var(--color-primary);
}

.el-upload-list__item .el-icon-close-tip {
  color: var(--color-primary);
}

.el-upload-list__item-delete:hover {
  color: var(--color-primary);
}

// date-picker
@import "./theme-patch/date-picker";
